package com.atguigu.guli.service.edu.feign;

import com.atguigu.guli.service.base.result.R;
import com.atguigu.guli.service.edu.feign.fallback.OssFeignClientsFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "service-oss", fallback = OssFeignClientsFallback.class)
public interface OssFeignClients {

    //删除头像的接口
    @DeleteMapping("/admin/oss/file/delFile")
    public R delFile(@RequestParam("path") String path, @RequestParam("module") String module);
}
